<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
    <div class="wrap J_check_wrap">
        <?php include $this->getViewFile('/common/Nav') ?>
        <form name="myform" action="<?php echo AdminBase::U('delete') ?>" method="post" class="J_ajaxForm">
            <div class="table_list">
                <table width="100%" cellspacing="0">
                    <thead>
                        <tr>
                            <td width="45" align="center"><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x">全选</td>
                            <td width="40" align="center">ID</td>
                             <td width="120" align="center">图片地址</td>
                            <td width="120" align="center">上传时间</td>
                            <td width="100" align="center">平台号</td>
                            <td width="100" align="center">显示位置</td>                           
                            <td width="100" align="center">管理操作</td>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($list): ?>
                            <?php foreach ($list as $picInfo): ?>
                                <tr>
                                    <td align="center"><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="aid[]" value="<?php echo$picInfo['aid'] ?>" id="att_<?php echo $picInfo['aid'] ?>" /></td>
                                    <td align="center"><?php echo $picInfo['pid'] ?></td>

                                    <td align="center">
                                        图片地址：<input name="" type="text" class="input length_6" value="<?php echo $picInfo['filepath'];?>">
                                    </td>
                                    <td align="center"><?php echo date('Y-m-d H:i:s', $picInfo['uploadtime']) ?></td>
                                    <td align="center"><?php if($picInfo['platform']==0){ echo Andriod;}elseif($picInfo['platform']==1){ echo ios;}elseif($picInfo['platform']==2){ echo Andriod;}else{echo ios;} ?></td>
                                    <td align="center"><?php if($picInfo['platform']==0){ echo 启动图;}elseif($picInfo['platform']==1){ echo 启动图;}elseif($picInfo['platform']==2){ echo 广告图;}else{echo 广告图;} ?></td>
                                    <td align="center"> <a class="J_ajax_del" data-msg="确定要删除该图片吗？" href="<?php echo AdminBase::U('delete', array('aid' => $picInfo['aid'])) ?>">删除</a></td>
                                </tr>
                            <?php endforeach ?>   
                        <?php endif ?>
                    </tbody>
                </table>
            </div>
            <div class="btn_wrap">
                <div class="btn_wrap_pd">
                    <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label> 
                    <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">删除图片</button>
                </div>
            </div>
        </form>
    </div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>